/*
 * COPYRIGHT. HSBC HOLDINGS PLC 2016. ALL RIGHTS RESERVED.
 * 
 * This software is only to be used for the purpose for which it has been
 * provided. No part of it is to be reproduced, disassembled, transmitted,
 * stored in a retrieval system nor translated in any human or computer
 * language in any way or for any other purposes whatsoever without the
 * written consent of HSBC Holdings plc.
 */
package com.pactera.integral.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;


/**
 * @type_name User
 */
/**
 * @author User
 *
 */
@Entity
@Table(name = "INT_USER_PERFORMANCE_SCORE")
public class UserPerformanceScore extends CommonEntity {
    /**
     * @field serialVersionUID
     */
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(generator = "system-uuid")
    @GenericGenerator(name = "system-uuid", strategy = "uuid")
    @Column(name = "ID", unique = true, nullable = false)
    private String id;

    @Column(name = "USER_ID", length = 32, nullable = false)
    private String userId;
    
    @Column(name = "PERFORMANCE_SCORE_ID", length = 32, nullable = false)
    private String performanceScoreId;

    @Column(name = "SELF_SCORE", length = 5, nullable = false)
    private int selfScore;
    //0:submit 1:first approved 2:final approved
    @Column(name = "TL_SCORE", length = 5)
    private Integer tLScore;
    
    @Column(name = "YEAR")
    private Integer year;
    //YYYYMM
    @Column(name = "MONTH")
    private Integer month;
    
    @Column(name = "DESCRIPTION", length = 200)
    private String description;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getPerformanceScoreId() {
		return performanceScoreId;
	}

	public void setPerformanceScoreId(String performanceScoreId) {
		this.performanceScoreId = performanceScoreId;
	}

	public int getSelfScore() {
		return selfScore;
	}

	public void setSelfScore(int selfScore) {
		this.selfScore = selfScore;
	}

	public Integer gettLScore() {
		return tLScore;
	}

	public void settLScore(Integer tLScore) {
		this.tLScore = tLScore;
	}

	public Integer getYear() {
		return year;
	}

	public void setYear(Integer year) {
		this.year = year;
	}

	public Integer getMonth() {
		return month;
	}

	public void setMonth(Integer month) {
		this.month = month;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}
    
    
}
